package cn.com.code.design.visitor;

import cn.com.code.design.user.impl.Student;
import cn.com.code.design.user.impl.Teacher;

/**
 * @author zhengpei
 * @date 2021/11/4
 */
public interface Visitor {

  // 访问学生信息
  void visit(Student student);

  // 访问老师信息
  void visit(Teacher teacher);
}
